import Vue from 'vue'
import Vuex from 'vuex'
import {SETMENU} from './mutations'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    iconshow:false,
    menu:[]
  },
  getters: {
  },
  mutations: {
    [SETMENU](state,menu){
      state.menu=menu
    },
    change(state,payload){
      state.iconshow=!state.iconshow
    }
  },
  actions: {
  },
  modules: {
  }
})
